<?php echo $this->doctype();
    $baseUrl = Zend_Controller_Front::getInstance()->getBaseUrl();
    ?>
<html>
    <head>
        <title>Login - Aplikasi Manajerial - PT. Aventurine Prana Asia</title>
        <?php echo $this->headLink()->appendStylesheet($baseUrl.'/content/css/login.css'); ?>   
    </head>
    <body>
        <div class="login_panel">
                <?php
                    echo '<h3>PT. Aventurine Prana Asia</h3>';
                    echo '<div class="separator"></div>';
                    echo "<h4>Please Login</h4>";
                    $errorsMessages =$this->form->getMessages();
                 ?>
            
                 <?php
                    if (isset($errorsMessages['username']['isEmpty']) or isset($errorsMessages['password']['isEmpty']) or isset($this->errorMessage)){
                        echo '<div class="errors">';
                    }
                    if (isset($this->errorMessage))
                    {
                        echo $this->errorMessage;
                    }
                    if(isset($errorsMessages['username']['isEmpty'])){
                        echo "Username is required field."."<br />";
                    }
                    if(isset($errorsMessages['password']['isEmpty'])){
                        echo "Password is required field.";
                    }
                    if (isset($errorsMessages['username']['isEmpty']) or isset($errorsMessages['password']['isEmpty']) or isset($this->errorMessage)){
                        echo "</div>";
                    }
                 ?>
                <?php
                    echo $this->form;
                ?>
        </div>
    </body>
</html>
